package cn.liontalk.service;

import com.netflix.hystrix.contrib.javanica.annotation.HystrixCommand;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * @author ZhouZhe
 * @version 1.0
 * @description
 * @date 2019-03-31 19:41
 **/
@Service
public class RibbonService {


    @Autowired
    RestTemplate restTemplate;


    public String testRibbon(String name) {
        return restTemplate.getForObject("http://test-service/test/demo?name=" + name, String.class);
    }



}
